<html>
<head><meta charset="utf-8"><title>There are lots of similar trait queries · t-compiler/help · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/index.html">t-compiler/help</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/There.20are.20lots.20of.20similar.20trait.20queries.html">There are lots of similar trait queries</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="220796318"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/There%20are%20lots%20of%20similar%20trait%20queries/near/220796318" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/There.20are.20lots.20of.20similar.20trait.20queries.html#220796318">(Dec 23 2020 at 15:04)</a>:</h4>
<p>I see</p>
<ul>
<li><code>implementations_of_trait(key: (CrateNum, DefId))</code></li>
<li><code>all_trait_implementations(key: CrateNum)</code></li>
<li><code>all_local_trait_impls(key: CrateNum)</code></li>
<li><code>trait_impls_of(key: DefId)</code></li>
<li><code>impl_trait_ref(key: DefId)</code></li>
</ul>
<p>What's the difference between these?</p>



<a name="220798161"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/There%20are%20lots%20of%20similar%20trait%20queries/near/220798161" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/There.20are.20lots.20of.20similar.20trait.20queries.html#220798161">(Dec 23 2020 at 15:26)</a>:</h4>
<p><a href="https://github.com/rust-lang/rust/pull/80331">https://github.com/rust-lang/rust/pull/80331</a></p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>